package com.ujs.dao;

import com.ujs.pojo.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ProductDao extends JpaRepository<Product,String>, JpaSpecificationExecutor<Product> {
    List<Product> findByProductNameLike(String name);
    List<Product> findByProductNumLike(String num);
}
